home *** CD-ROM | disk | FTP | other *** search
- /*
- File: Resources.idl
-
- Contains: Resource Manager Interfaces.
-
- Version: Technology: System 7.5
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
- #ifndef __RESOURCES_IDL__
- #define __RESOURCES_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef __TYPES_IDL__
- #include <Types.idl>
- #endif
- #ifndef __MIXEDMODE_IDL__
- #include <MixedMode.idl>
- #endif
- #ifndef __FILES_IDL__
- #include <Files.idl>
- #endif
- #if FOR_SYSTEM8_COOPERATIVE
- #ifndef __FILEMANAGERTYPES_IDL__
- #include <FileManagerTypes.idl>
- #endif
- #endif
-
- #ifdef __SOMIDL__
-
- /*
- InitResources and RsrcZoneInit are no longer needed in Copland.
- * CFM provides the necessary run time initialization entry points.
- */
- #if FOR_SYSTEM7_ONLY
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- typedef OpaquePtr ResErrProcPtr;
- typedef OpaquePtr ResErrUPP;
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
- /*
- Use TempInsertROMMap to force the ROM resource map to be
- inserted into the chain in front of the system. Note that
- this call is only temporary - the modified resource chain
- is only used for the next call to the resource manager.
- See IM IV 19 for more information.
- */
- #if CGLUESUPPORTED
- #endif
- #if OLDROUTINENAMES
- #endif
- #endif
- typedef short ResFileRefNum;
-
- typedef short ResID;
-
- typedef short ResAttributes;
-
- typedef short ResFileAttributes;
-
- typedef UInt32 ResFilePermissions;
-
- #if FOR_SYSTEM8_COOPERATIVE
- /*
- * New API returning OSStatus, rolling in low mem, and fixing
- * some sins of the past.
- *
- */
- /*
- * We don't want to support resource file attributes other then
- * the readOnly bit. Access to the readOnly bit is now gained
- * through the calls RMSetResFileReadOnlyState and RMGetResFileReadOnlyState.
- *
- * So, for now, we will not support RMGetResFileAttrs and RMSetResFileAttrs.
- *
- * OSStatus RMGetResFileAttrs(ResFileRefNum refNum, ResFileAttributes * attributes);
- * OSStatus RMSetResFileAttrs(ResFileRefNum refNum, ResFileAttributes attributes);
- */
- /*
- * GetResourceSize returns either the size of the handle if the handle
- * is not empty or the size of the resource as stored on disk (i.e.
- * it has the exact semantics of GetResourceSizeOnDisk but does not
- * have the confusing name).
- */
- /*
- * For now, we don't know if we want to support the purge
- * proc in the future... it's an outstanding issue as stated in the
- * Design Document.
- *
- * OSStatus RMSetResPurge(Boolean install);
- */
- /*
- * The following calls are used to get/set the read only state (i.e. the
- * mapReadOnly file attribute) of a resource file. When setting the state,
- * the state is set both in memory (i.e. taking affect immediately for all
- * other calls) and on disk (i.e. next time the file is opened, it will
- * be opened with the read only state set). The call RMSetResFileReadOnlyState
- * ignores the current state of the resource file. Setting the read only
- * state changes the current resource file attributes of the file both
- * in memory and on disk as appropriately (i.e. setting/clearing the read only state
- * will set/clear the mapReadOnly bit in memory and on disk).
- *
- * The read only state is checked when .... [this needs to be filled in -- it
- * will be exactly the same as when the mapReadOnly bit is checked].
- */
- #endif
-
- #endif /* __SOMIDL__ */
-
- #endif /* __RESOURCES_IDL__ */
-
-